# @Time    : 2020/4/9 14:22
# @Author  : wumao
# @Email   : kanhebei@dingtalk.com

from flask import render_template, current_app


def view(template_name, **kwargs):
    return render_template(
        current_app.config.get('SITE_TEMPLATE', 'default') + '/' + template_name,
        **kwargs
    )
